package boboUtil;

//表示一组对象的根接口

public interface BoboCollection<E> extends BoboIterable<E> {
    int size();
    boolean isEmpty();

    //增删查
    boolean add(E e);
    boolean addAll(BoboCollection<? extends  E> c);
    boolean remove(Object obj);
    boolean removeAll(BoboCollection<?> c);
    void clear();
    boolean contains(Object obj);
    boolean containsAll(BoboCollection<?> c);

    @Override
    boolean equals(Object obj);
    @Override
    int hashCode();

    Object[] toArray();
    <T> T[] toArray(T[] a);
}
